{include file="public/header" /}
<article class="page-container">
    <div class="row cl">
        <label class="form-label col-xs-6 col-sm-6" style="text-align: left">卖家信息</label>
        <label class="form-label col-xs-6 col-sm-6" style="text-align: left">买家信息</label>
    </div>

    <div class="row cl" style="margin-top: 10px">
        <div class="form-label col-xs-6 col-sm-6" style="text-align: left">
            <div>卖家</div>
            <div>id：{$data.sell_uid}</div>
            <div>账号：{if $data.sell_uid>0}{$data.sell_user_name} {else} 系统{/if}</div>
            <div>紧急联系人：{$data.sellUser.nickname}</div>
            <div>联系电话：{$data.sellUser.contact}</div>
            <div>订单号：{$data.sell_sn}</div>
            <div style="color: orange">订单类型：  {switch name="$data.sell_type"}
                {case value="1"}平台放单{/case}
                {case value="2"}换购订单{/case}
                {case value="3"}用户订单{/case}
                {case value="4"}九宫抽奖{/case}
                {default /}--
                {/switch}</div>
            <div>商品名：{$data.sell_gname}</div>
            <div>商品价格：{$data.sell_price}</div>
            <div>创建时间：{$data.sell_create_time}</div>
            <div>到期时间：{$data.end_time}</div>
            <div>实际到期：{$data.sell_estimate}</div>
        </div>
        <div class="form-label col-xs-6 col-sm-6"  >
            <div>
                <div>买家</div>
                <div>id：{$data.buy_id}</div>
                <div>账号：{if $data.buy_id>0}{$data.buy_user_name} {else} 系统收单{/if}</div>
                <div>紧急联系人：{$data.buyUser.nickname}</div>
                <div>联系电话：{$data.buyUser.contact}</div>
                <div>订单号：{$data.sell_sn}</div>
                <div style="color: orange">订单类型：用户订单</div>
                <div>商品名：{$data.sell_gname}</div>
                <div>商品价格：{$data.sell_price}</div>
                <div>匹配时间：{$data.create_time}</div>
            </div>
        </div>
    </div>

    <div class="row cl" style="margin-top: 10px">
        <label class="form-label col-xs-6 col-sm-6" style="text-align: left">订单信息</label>
        <label class="form-label col-xs-6 col-sm-6" style="text-align: left">支付信息</label>
    </div>
    <div class="row cl" style="margin-top: 10px">
        <div class="form-label col-xs-6 col-sm-6" style="text-align: left">
            <div>
                <div>商品名：{$data.sell_gname}</div>
                <div>商品价格：{$data.sell_price}</div>
                <div>每天发放MT：{$data.sell_mt}</div>
                <div>每天发放合约：{$data.sell_day_profit}</div>
                <div>收益天数：{$data.sell_days}</div>
                <div style="color: #00B83F">订单状态：{switch name="$data.order_status"}
                    {case value="1"}待支付{/case}
                    {case value="2"}待确认{/case}
                    {case value="3"}已完成{/case}
                    {case value="4"}取消{/case}
                    {case value="5"}申诉中{/case}
                    {case value="6"}卖家申述成功{/case}
                    {case value="7"}判定{/case}
                    {default /}--
                    {/switch}</div>
                <div style="color: red">{switch name="$data.froce"}
                    {case value="1"}强制匹配{/case}
                    {case value="0"}随机中奖{/case}
                    {default /}--
                    {/switch}</div>
            </div>
        </div>
        <div class="form-label col-xs-6 col-sm-6" style="text-align: left">
            {if !empty($data.pay_bank_json_data ) }
            <div>
                <div>支付类型： {switch name="$data.pay_bank_json_data.type"}
                    {case value="1"}支付宝{/case}
                    {case value="2"}微信{/case}
                    {case value="3"}银行卡{/case}
                    {default /}--
                    {/switch}</div>
                <div>账号：{$data.pay_bank_json_data.account}</div>
                <div>姓名：{$data.pay_bank_json_data.user_name}</div>
                {if $data.pay_bank_json_data.type ==3 }
                <div>银行：{$data.pay_bank_json_data.bank_name}</div>
                <div>支行：{$data.pay_bank_json_data.user_name}</div>
                {/if}
            </div>
            {else}
            <div>
                当前订单没有支付信息
            </div>
            {/if}
            {if !empty($data.pay_img ) }
            <div>支付凭证                 <img src="{$data.pay_img_url}" width="60px" height="60px" onclick="viewImage('{$data.pay_img_url}')"/>
            {/if}
        </div>
    </div>

    <div class="row cl" style="margin-top: 10px">
        <label class="form-label col-xs-6 col-sm-6" style="text-align: left">订单申诉</label>
    </div>
    <div class="row cl" style="margin-top: 10px">
        <div class="form-label col-xs-6 col-sm-6" style="text-align: left">
            {if !empty($data.appeal ) }
            <div>
                <div>申诉内容：{$data.appeal.content}</div>
                {if !empty($data.appeal.img_url ) }
                <div>申诉图片 <img src="{$data.appeal.img_url}" width="60px" height="60px" onclick="viewImage('{$data.appeal.img_url}')"/>
                </div>
                {/if}
                <div>申诉判决结果：{switch name="$data.appeal.appeal_result"}
                    {case value="0"}申述中{/case}
                    {case value="1"}卖家申述成功{/case}
                    {case value="2"}卖家申述失败{/case}
                    {default /}--
                    {/switch} </span></div>
                <div>申诉时间：{$data.appeal.create_time}</div>
                {if !empty($data.appeal.finish_time ) }
                <div>申诉判决时间：{$data.appeal.finish_time} </div>
                {/if}
            </div>
            {else}   <div>暂无申诉</div>
            {/if}

        </div>
        <div class="form-label col-xs-6 col-sm-6" style="text-align: left">


        </div>
    </div>
</article>
<script>
    function viewImage(url) {
        window.open(url,"_blank")
    }

</script>

{include file="public/footer" /}

